<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<tr:document xmlns="http://www.w3.org/1999/xhtml"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:tr="http://myfaces.apache.org/trinidad"
             xmlns:mias="http://www.monsters.inc/mias"
             xmlns:c="http://java.sun.com/jstl/core">

<ui:composition template="templates/template.xhtml">
  <!--
       This page contains an edit form for preferences.
  -->
  <ui:define name="title">Preferences</ui:define>
  <ui:define name="content"> 
    <tr:panelFormLayout>
      <mias:selectField type="radio" items="#{preferences.availableSkinFamilies}" 
                        bean="#{preferences}" id="skinFamily" /> 
                        
      <f:facet name="footer">
        <tr:panelButtonBar>
          <tr:commandButton text="#{msg.apply}" action="apply" id="btnApply"/>
          <tr:commandButton text="#{msg.ok}" action="ok"/>
          <tr:commandButton text="#{msg.cancel}" action="cancel" immediate="true" />
        </tr:panelButtonBar>
      </f:facet>
    </tr:panelFormLayout>
    
    <tr:panelHeader text="Skin preview area" inlineStyle="margin-top:15px;">
    
      <tr:panelHeader text="panelBox">
	    <tr:panelChoice labelAndAccessKey="Background color scheme:" position="top" alignment="end">
	      <c:forEach var="bg" items="#{mias:getStringArray('light medium dark transparent')}">
	        <tr:showDetailItem text="#{bg}">
	          <tr:panelBox icon="../images/exclamation.png" text="Warning!" background="#{bg}" inlineStyle="width:500px;">
	            <tr:outputFormatted value="You should be aware that a lot of &lt;b&gt;monsters&lt;/b&gt; work at this scaring facility. It is their job to scare kids in order to collect their screams. People with (a history of) heart problems are advised not to get scared. Please read our &lt;a href='#'&gt;disclaimer&lt;/a&gt; for information about reliability."/>
	          </tr:panelBox>
	        </tr:showDetailItem>
	      </c:forEach>
	    </tr:panelChoice>
	  </tr:panelHeader>

      <tr:panelHeader text="panelTabbed">
	    <tr:panelTabbed position="above">
	      <tr:showDetailItem text="Apache MyFaces websites">
	        <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
	          <tr:goLink text="Main website" destination="http://myfaces.apache.org"/>
	          <tr:goLink text="Wiki" destination="http://wiki.apache.org/myfaces/"/>
	          <tr:goLink text="Sources" destination="http://svn.apache.org/viewvc/myfaces/site/trunk/"/>
	          <tr:goLink text="Issue tracking" destination="https://issues.apache.org/jira/secure/BrowseProjects.jspa"/>
            </tr:panelGroupLayout>
	      </tr:showDetailItem>
	      <tr:showDetailItem text="Apache MyFaces Trinidad useful links">
	        <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
	          <tr:goLink text="Main website" destination="http://myfaces.apache.org/trinidad"/>
              <tr:goLink text="Developers guide" destination="http://myfaces.apache.org/trinidad/devguide/index.html"/>
	          <tr:goLink text="Tag documentation" destination="http://myfaces.apache.org/trinidad/trinidad-1_2/trinidad-api/tagdoc.html"/>
	          <tr:goLink text="JavaDocs" destination="http://myfaces.apache.org/trinidad/trinidad-1_2/trinidad-api/testapidocs/index.html"/>
  	        </tr:panelGroupLayout>
	      </tr:showDetailItem>
	      <tr:showDetailItem text="Book resources">
	        <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
	          <tr:goLink text="Packt publishing" destination="http://www.packtpub.com/"/>
              <tr:goLink text="Example sources" destination="http://code.google.com/p/jee-examples/"/>
			  <tr:goLink text="Author's weblog" destination="http://www.bartkummel.net"/>
	      </tr:panelGroupLayout>
	    </tr:showDetailItem>
	    <tr:showDetailItem text="Other stuff">
	      <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
	        <tr:goLink text="Google" destination="http://www.google.com"/>
	        <tr:goLink text="Delicious" destination="http://del.icio.us"/>
	        <tr:goLink text="JavaRanch" destination="http://www.javaranch.com"/>
	      </tr:panelGroupLayout>
	    </tr:showDetailItem>
	  </tr:panelTabbed>
	</tr:panelHeader>
    
      <tr:panelHeader text="panelAccordion">
        <tr:panelAccordion discloseMany="false" discloseNone="false">
          <tr:showDetailItem text="Apache MyFaces websites">
            <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
              <tr:goLink text="Main website" destination="http://myfaces.apache.org"/>
              <tr:goLink text="Wiki" destination="http://wiki.apache.org/myfaces/"/>
              <tr:goLink text="Sources" destination="http://svn.apache.org/viewvc/myfaces/site/trunk/"/>
              <tr:goLink text="Issue tracking" destination="https://issues.apache.org/jira/secure/BrowseProjects.jspa"/>
            </tr:panelGroupLayout>
          </tr:showDetailItem>
          <tr:showDetailItem text="Apache MyFaces Trinidad useful links">
            <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
              <tr:goLink text="Main website" destination="http://myfaces.apache.org/trinidad"/>
              <tr:goLink text="Developers guide" destination="http://myfaces.apache.org/trinidad/devguide/index.html"/>
              <tr:goLink text="Tag documentation" destination="http://myfaces.apache.org/trinidad/trinidad-1_2/trinidad-api/tagdoc.html"/>
              <tr:goLink text="JavaDocs" destination="http://myfaces.apache.org/trinidad/trinidad-1_2/trinidad-api/testapidocs/index.html"/>
            </tr:panelGroupLayout>
          </tr:showDetailItem>
          <tr:showDetailItem text="Book resources">
            <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
              <tr:goLink text="Packt publishing" destination="http://www.packtpub.com/"/>
              <tr:goLink text="Example sources" destination="http://code.google.com/p/jee-examples/"/>
              <tr:goLink text="Author's weblog" destination="http://www.bartkummel.net"/>
          </tr:panelGroupLayout>
        </tr:showDetailItem>
        <tr:showDetailItem text="Other stuff">
          <tr:panelGroupLayout layout="vertical" ><!-- inlineStyle="margin-left: 17px; margin-bottom: 5px;"-->
            <tr:goLink text="Google" destination="http://www.google.com"/>
            <tr:goLink text="Delicious" destination="http://del.icio.us"/>
            <tr:goLink text="JavaRanch" destination="http://www.javaranch.com"/>
          </tr:panelGroupLayout>
        </tr:showDetailItem>
      </tr:panelAccordion>
    </tr:panelHeader>


    </tr:panelHeader>
              
  </ui:define>
</ui:composition>

</tr:document>